package com.bw.unit6.http

import com.bw.unit6.base.BaseBean
import com.bw.unit6.bean.GoodsBean
import com.bw.unit6.bean.UserInfoBean
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

/**
 *
 * @ClassName: ApiService
 * @Description: java类作用描述
 * @Author: zhangyanchao
 * @CreateDate: 2024/9/13 11:13 AM
 * @Version: 1.0
 */
interface ApiService {

    @POST("/user/loginjson")
    suspend fun loginjson(@Body map: Map<String, String>): BaseBean<UserInfoBean>

    @GET("/goods/info")
    suspend fun getGoodsList(
        @Query("category_id") category_id: Int,
        @Query("currentPage") currentPage: Int,
        @Query("pageSize") pageSize: Int
    ): BaseBean<List<GoodsBean>>


}